{ext->class_function class="reiting" assign="is_reiting"}
{if $is_reiting == 1}
{literal}
<style type="text/css">
	.this .ParentRow{
		border-bottom:1px solid #D6DBDE; background-color:#25404E; padding:5px 0 5px 10px; color:#FFFFFF; border-bottom:1px solid white
	}
	.this .ReitingRow{
		background-color:#F4F6F7; padding:5px 0 5px 0px; border-bottom:1px solid #D6DBDE;
	}
	.this .MainTable{
		background-color:#FFFFFF; width:100%; visibility:inherit
	}
	.this .MainTable .td1{
		width:60px; border-bottom:1px solid #D6DBDE
	}
	.this .MainTable .td2{
		width:250px; padding:5px 0 5px 0px; border-right:1px solid #D6DBDE; border-bottom:1px solid #D6DBDE
	}
	.this .MainTable .td3{
		width:100px; border-right:1px solid #D6DBDE; text-align:center; border-bottom:1px solid #D6DBDE
	}
	.this .MainTable .td4{
		width:100px; border-right:1px solid #D6DBDE; text-align:center; border-bottom:1px solid #D6DBDE
	}
	.this .MainTable .td5{
		text-align:center; border-bottom:1px solid #D6DBDE; width:100px
	}
	.this .MainTable .td6{
		border-bottom:1px solid #D6DBDE;
	}
	.this .btnImg{
		cursor:pointer;
	}	
	.this .invisiblePage {
		visibility:hidden; position:absolute
	}
</style>
{/literal} 

{include file="admin/modules/reiting/tabs.html"}

{if ($smarty.get.tpl_reiting_module=='main' || !$smarty.get.tpl_reiting_module) && !$smarty.get.reiting_id}
	{include file="admin/modules/reiting/main.html"}
{elseif $smarty.get.tpl_reiting_module=='reitings'}
	{include file="admin/modules/reiting/reitings.html"}
{elseif $smarty.get.tpl_reiting_module=='edit' && $smarty.get.reiting_id}
	{include file="admin/modules/reiting/edit.html"}
{elseif $smarty.get.tpl_reiting_module=='settings'}
	{include file="admin/modules/reiting/settings.html"}
{/if}
	
	
{/if}